dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22012ab
)
Make LinkCache::invalidateTitle() use the instance WAN cache
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 15 Jun 2018 04:00:38 +0000
(21:00 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 15 Jun 2018 04:00:38 +0000
(21:00 -0700)
Change-Id: Idefcee9b37dcb73b2f18351123b097f4ae68fa76
includes/cache/LinkCache.php
patch
|
blob
|
history
diff --git
a/includes/cache/LinkCache.php
b/includes/cache/LinkCache.php
index
2d08895
..
7cbb86f
100644
(file)
--- a/
includes/cache/LinkCache.php
+++ b/
includes/cache/LinkCache.php
@@
-321,7
+321,7
@@
class LinkCache {
*/
public function invalidateTitle( LinkTarget $title ) {
if ( $this->isCacheable( $title ) ) {
- $cache =
ObjectCache::getMainWANInstance()
;
+ $cache =
$this->wanCache
;
$cache->delete(
$cache->makeKey( 'page', $title->getNamespace(), sha1( $title->getDBkey() ) )
);